﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class kuaidixinxi_detail : System.Web.UI.Page
{
    public string nyundanhao, nkuaijianleixing, nyuandizhi, nmudedi, nshoujianrenxingming, nshoujianrendianhua, njiage, ndangqianzhuangtai, nbeizhu;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
           
            string sql;
            sql = "select * from kuaidixinxi where id=" + Request.QueryString["id"].ToString().Trim();
            getdata(sql);
        }
    }



    private void getdata(string sql)
    {
        DataSet result = new DataSet();
        result = new Class1().hsggetdata(sql);
        if (result != null)
        {
            if (result.Tables[0].Rows.Count > 0)
            {
                nyundanhao = result.Tables[0].Rows[0]["yundanhao"].ToString().Trim(); 
                nkuaijianleixing = result.Tables[0].Rows[0]["kuaijianleixing"].ToString().Trim(); 
                nyuandizhi = result.Tables[0].Rows[0]["yuandizhi"].ToString().Trim(); 
                nmudedi = result.Tables[0].Rows[0]["mudedi"].ToString().Trim(); 
                nshoujianrenxingming = result.Tables[0].Rows[0]["shoujianrenxingming"].ToString().Trim(); 
                nshoujianrendianhua = result.Tables[0].Rows[0]["shoujianrendianhua"].ToString().Trim(); 
                njiage = result.Tables[0].Rows[0]["jiage"].ToString().Trim(); 
                ndangqianzhuangtai = result.Tables[0].Rows[0]["dangqianzhuangtai"].ToString().Trim(); 
                nbeizhu = result.Tables[0].Rows[0]["beizhu"].ToString().Trim();

            }
        }
    }
    
}

